<h3>River Valley Church</h3>
<h3>Batch #<%= @batch.id %></h3>
<h3>Date: <%= Date.today.strftime('%b %d %Y') %></h3>
<h3>Batch Count Total: <%= number_to_currency @batch.count_total rescue nil %></h3><hr>

<table border="0" cellspacing="1" cellpadding="3" width="100%;">
	<tr>
		<th>Check #</th>
		<th>Contributor</th>
		<th>Amount</th>
	</tr>
	<% @batch.contributions.sort_by {|g| g.person.last_first_name}.each do |c| %>
	<tr class="<%= cycle('even','odd') %>">
		<td><%= c.check_num rescue nil %></td>
		<td><%= c.person.last_first_name rescue nil %></td>
		<td><%= number_to_currency c.total rescue nil %>
			<span id="message-black">(
				<%= c.donations.collect { |d| [(number_to_currency d.amount) + ": ", d.fund.name]}.to_sentence %>)
			</span>
		</td>
	</tr>
	<% end %>	
</table>

<div style="float:none;clear:both;">

<hr>

<span style="float:right;">
	<strong>Items Total: <%= number_to_currency @batch.entered_so_far rescue nil %></strong>
</span>
</div>
